package cn.com.jinhao.hotline.auth.service.feign;

import cn.com.jinhao.hotline.commons.util.RestResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * hotline-spring-cloud
 * <p>Description: </p>
 *
 * @author ShaneMew
 * @version 1.0
 * @date 2020/1/17
 * @since 2020-01-17
 */
@FeignClient(value = "provider-user")
public interface UserFeign {
    @GetMapping("/user/select/{code}")
    RestResponse queryUserByCode(@PathVariable(value = "code") String code);
}
